[INFO] cloning repository https://github.com/coderSomya/joker
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/coderSomya/joker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcoderSomya%2Fjoker", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcoderSomya%2Fjoker'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 77f9a0e1e081f106d3451ad0ec1514495ad287d3
[INFO] fixing coderSomya/joker against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcoderSomya%2Fjoker" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/coderSomya/joker
[INFO] finished tweaking git repo https://github.com/coderSomya/joker
[INFO] tweaked toml for git repo https://github.com/coderSomya/joker written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/coderSomya/joker on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/coderSomya/joker already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 027be1237ce2aaf7342086ed5718aa885a0ee4f13fcc10c0f36f3ab39b9078f6
[INFO] running `Command { std: "docker" "start" "027be1237ce2aaf7342086ed5718aa885a0ee4f13fcc10c0f36f3ab39b9078f6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "027be1237ce2aaf7342086ed5718aa885a0ee4f13fcc10c0f36f3ab39b9078f6" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "027be1237ce2aaf7342086ed5718aa885a0ee4f13fcc10c0f36f3ab39b9078f6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "027be1237ce2aaf7342086ed5718aa885a0ee4f13fcc10c0f36f3ab39b9078f6" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.177
[INFO] [stderr]    Compiling zerocopy v0.8.30
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking joker v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `remove_pairs`
[INFO] [stdout]  --> src/game.rs:3:35
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::utils::{shuffle_cards, remove_pairs};
[INFO] [stdout]   |                                   ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]   --> src/utils.rs:92:9
[INFO] [stdout]    |
[INFO] [stdout] 92 |     use super::*;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]    --> src/utils.rs:111:10
[INFO] [stdout]     |
[INFO] [stdout] 111 |      use super::*;
[INFO] [stdout]     |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `remove_pairs`
[INFO] [stdout]  --> src/game.rs:3:35
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::utils::{shuffle_cards, remove_pairs};
[INFO] [stdout]   |                                   ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]    --> src/linked_list.rs:117:9
[INFO] [stdout]     |
[INFO] [stdout] 117 |     use super::*;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/elements.rs:38:37
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let random_key = random_key(self.cards);
[INFO] [stdout]    |                          ---------- ^^^^^^^^^^ expected `&HashMap<_, _>`, found `HashMap<Card, u32>`
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&HashMap<_, _>`
[INFO] [stdout]                  found struct `HashMap<Card, u32>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/utils.rs:82:8
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub fn random_key<K: Clone, V>(map: &HashMap<K, V>) -> Option<K> {
[INFO] [stdout]    |        ^^^^^^^^^^              -------------------
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let random_key = random_key(&self.cards);
[INFO] [stdout]    |                                     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/elements.rs:38:37
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let random_key = random_key(self.cards);
[INFO] [stdout]    |                          ---------- ^^^^^^^^^^ expected `&HashMap<_, _>`, found `HashMap<Card, u32>`
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&HashMap<_, _>`
[INFO] [stdout]                  found struct `HashMap<Card, u32>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/utils.rs:82:8
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub fn random_key<K: Clone, V>(map: &HashMap<K, V>) -> Option<K> {
[INFO] [stdout]    |        ^^^^^^^^^^              -------------------
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let random_key = random_key(&self.cards);
[INFO] [stdout]    |                                     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/elements.rs:40:27
[INFO] [stdout]    |
[INFO] [stdout] 40 |         self.cards.remove(random_key);
[INFO] [stdout]    |                    ------ ^^^^^^^^^^ expected `&Card`, found `Option<_>`
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&Card`
[INFO] [stdout]                    found enum `Option<_>`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/std/src/collections/hash/map.rs:1391:11
[INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option<_>` value, panicking if the value is an `Option::None`
[INFO] [stdout]    |
[INFO] [stdout] 40 |         self.cards.remove(random_key.expect("REASON"));
[INFO] [stdout]    |                                     +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/elements.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |     pub fn extract_random_card(&mut self) -> Card{
[INFO] [stdout]    |                                              ---- expected `Card` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 42 |         random_key
[INFO] [stdout]    |         ^^^^^^^^^^ expected `Card`, found `Option<_>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Card`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option<_>` value, panicking if the value is an `Option::None`
[INFO] [stdout]    |
[INFO] [stdout] 42 |         random_key.expect("REASON")
[INFO] [stdout]    |                   +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/elements.rs:40:27
[INFO] [stdout]    |
[INFO] [stdout] 40 |         self.cards.remove(random_key);
[INFO] [stdout]    |                    ------ ^^^^^^^^^^ expected `&Card`, found `Option<_>`
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&Card`
[INFO] [stdout]                    found enum `Option<_>`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/std/src/collections/hash/map.rs:1391:11
[INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option<_>` value, panicking if the value is an `Option::None`
[INFO] [stdout]    |
[INFO] [stdout] 40 |         self.cards.remove(random_key.expect("REASON"));
[INFO] [stdout]    |                                     +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/elements.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |     pub fn extract_random_card(&mut self) -> Card{
[INFO] [stdout]    |                                              ---- expected `Card` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 42 |         random_key
[INFO] [stdout]    |         ^^^^^^^^^^ expected `Card`, found `Option<_>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Card`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option<_>` value, panicking if the value is an `Option::None`
[INFO] [stdout]    |
[INFO] [stdout] 42 |         random_key.expect("REASON")
[INFO] [stdout]    |                   +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `contains` found for mutable reference `&mut Player` in the current scope
[INFO] [stdout]   --> src/elements.rs:46:17
[INFO] [stdout]    |
[INFO] [stdout] 46 |         if self.contains(card){
[INFO] [stdout]    |                 ^^^^^^^^ method not found in `&mut Player`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `contains`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `RangeBounds`
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]    |
[INFO] [stdout] 46 |         if self.name.contains(card){
[INFO] [stdout]    |                 +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `contains` found for mutable reference `&mut Player` in the current scope
[INFO] [stdout]   --> src/elements.rs:46:17
[INFO] [stdout]    |
[INFO] [stdout] 46 |         if self.contains(card){
[INFO] [stdout]    |                 ^^^^^^^^ method not found in `&mut Player`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `contains`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `RangeBounds`
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]    |
[INFO] [stdout] 46 |         if self.name.contains(card){
[INFO] [stdout]    |                 +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]   --> src/utils.rs:54:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |         for j in 0..4{
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/utils.rs:74:21
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub fn remove_pairs(mut cards: &mut HashMap<Card,u32>){
[INFO] [stdout]    |                     ----^^^^^
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]   --> src/utils.rs:54:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |         for j in 0..4{
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/utils.rs:74:21
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub fn remove_pairs(mut cards: &mut HashMap<Card,u32>){
[INFO] [stdout]    |                     ----^^^^^
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cards`
[INFO] [stdout]   --> src/utils.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 94 |     let cards = shuffle_cards(n);
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_cards`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `card9`
[INFO] [stdout]    --> src/utils.rs:122:10
[INFO] [stdout]     |
[INFO] [stdout] 122 |      let card9 = Card{
[INFO] [stdout]     |          ^^^^^ help: if this is intentional, prefix it with an underscore: `_card9`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `joker` (bin "joker") due to 4 previous errors; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `joker` (bin "joker" test) due to 4 previous errors; 8 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "027be1237ce2aaf7342086ed5718aa885a0ee4f13fcc10c0f36f3ab39b9078f6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "027be1237ce2aaf7342086ed5718aa885a0ee4f13fcc10c0f36f3ab39b9078f6", kill_on_drop: false }`
[INFO] [stdout] 027be1237ce2aaf7342086ed5718aa885a0ee4f13fcc10c0f36f3ab39b9078f6
